<?php
	ini_set('include_path', dirname(__FILE__));
	require_once(get_include_path().'/libraries/load.php');
	$db = DataBase::getInstance();
	$db->execute('SET character_set_results="utf8"');
	$db->execute("set names 'utf8';");

	$db->setQuery("SHOW VARIABLES LIKE 'character_set%'; ");
	$list = $db->loadObjectList();

	for($i = 0; $i < count($list); $i++){
		echo $list[$i]->Variable_name .': '.$list[$i]->Value.'<br>';
	}


	$db->setQuery("select * from actividades");
	$list = $db->loadObjectList();

	for($i = 0; $i < count($list); $i++){
		echo $list[$i]->nombre .'<br>';
	}
?>